// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db= cloud.database()

// 云函数入口函数
exports.main = (event, context) => {
	console.log(event) //以对象形式传入的参数

 	try {
	 	return db.collection('folders').where({
			'_openid': event._openid, //event中传入的参数
	 	}).get()
	 } catch (e) {
		console.log(e)
	}
}